package com.tanhua.api.mongdb;

import com.tanhua.domain.mogo.Publish;
import com.tanhua.domain.vo.PageBeanVo;

public interface PublishApi {

    public String save(Publish publish);

    PageBeanVo findAlbumByPage(Integer page, Integer pagesize, Long userId);

    PageBeanVo findTimeLineByPage(Integer page, Integer pagesize, Long userId);

    PageBeanVo findRecommendByPage(Integer page, Integer pagesize, Long userId);

    Publish findById(String publishId);

    PageBeanVo findUserPublish(Integer page, Integer pagesize, Long uid, Integer state);

    void updateState(String publishId, Integer state);

    Publish findByPid(Long pid);
}
